package com.sc.nft.service.impl;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.UserSynthesisRecordDao;
import com.sc.nft.entity.vo.AdminSynthesisRecordSimpleVO;
import com.sc.nft.entity.vo.AdminSynthesisRecordVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.service.UserSynthesisRecordService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 服务接口实现
 *
 * @author rdg
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2022-06-28 19:53:02
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class UserSynthesisRecordServiceImpl implements UserSynthesisRecordService {
    private final UserSynthesisRecordDao userSynthesisRecordDao;

    @Override
    public Page<AdminSynthesisRecordVO> synthesisRecord(int pageNo, int pageSize, String nickName, String userTel, String firstTitle, Date startDate, Date endDate) {
        return userSynthesisRecordDao.adminSynthesisRecord(pageNo, pageSize, nickName, userTel, firstTitle, startDate, endDate);
    }

    @Override
    public List<AdminSynthesisRecordSimpleVO> synthesisRecordExport(Long productId, Date startDate, Date endDate) {
        return userSynthesisRecordDao.adminSynthesisRecordExport(productId, startDate, endDate);
    }
}